import request from '@/api/request';

/**
 * 分页
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const i18nMsgPageApi = query => {
    return request({
        url: '/api/mgt/i18nMsg/page',
        method: 'get',
        params: query,
        isLoading: true
    });
};

/**
 * 详情
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const i18nMsgDetailApi = query => {
    return request({
        url: '/api/mgt/i18nMsg/getDetail',
        method: 'get',
        params: query,
        isLoading: true
    });
};

/**
 * 添加
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const i18nMsgSaveApi = query => {
    return request({
        url: '/api/mgt/i18nMsg/save',
        method: 'post',
        data: query,
        isLoading: true
    });
};

/**
 * 编辑
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const i18nMsgEditApi = query => {
    return request({
        url: '/api/mgt/i18nMsg/edit',
        method: 'put',
        data: query,
        isLoading: true
    });
};

/**
 * 删除
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const i18nMsgRemoveApi = query => {
    return request({
        url: '/api/mgt/i18nMsg/removeByIds',
        method: 'delete',
        params: query,
        isLoading: true
    });
};
